@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import "tailwindcss";
@import "./theme.css";
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));

:root {
  --primary-color: #000000;
  --primary-hover: #4f46e5;
  --secondary-color: #cccccc;
  --bg-color: #f8f9fc;
  --card-bg: #f3f4f6;
  --card-bg-darker: #e5e7eb;
  --text-color: #1f2937;
  --text-secondary: #6b7280;
  --primary-bg-color: #f1f5f9;
  --secondary-bg-color: #e2e8f0;
  --tag-color: #4e7aff;
  --tag-border-color: #4e7aff;
  --tag-bg-color: #e8efff;
}

.dark {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --secondary-color: #0ea5e9;
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --card-bg-darker: #151e2d;
  --text-color: #f8fafc;
  --text-secondary: #94a3b8;
  --primary-bg-color: #0f172a;
  --secondary-bg-color: #0f1c3d;
  --tag-color: #7e848a;
  --tag-border-color: #f8fafc;
  --tag-bg-color: #1e2736;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  transition: all 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* Antd overrides */
.ant-btn {
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed);
}

.ant-btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  border: none;
}

.ant-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ant-card {
  background: none;
  border-radius: var(--border-radius);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-speed);
}

.ant-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
  border-color: var(--primary-color);
}

.ant-modal-root .ant-modal-mask {
  backdrop-filter: blur(5px);
}

/* Common animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

.fadeIn {
  animation: fadeIn 0.5s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Text selection */
::selection {
  background: var(--primary-color);
  color: white;
}

/* Focus states */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Product Introduction Page Styles */
.feature-card {
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.advantage-item {
  padding: 1.5rem;
  background: var(--card-bg-darker);
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed);
}

.advantage-item:hover {
  transform: translateY(-3px);
}

.advantage-item h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.advantage-item p {
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  h1 {
    font-size: 2rem !important;
  }

  .advantage-item {
    padding: 1rem;
  }
}

/* Enhanced global styles */
html {
  scroll-behavior: smooth;
}

/* Section transitions */
.section-wrapper {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.section-wrapper:hover {
  transform: translateY(-5px);
}

/* Enhanced typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--text-color) 0%,
    var(--text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
